package com.tensquare.rabbit.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @description
 * @author: xu1
 **/
@Component
@RabbitListener(queues = "kudingyu")
public class Customer3 {
//    @RabbitHandler
//    public void getMsg(String msg){
//        System.out.println("直接模式 消费消息"+msg);
//    }

    @RabbitHandler
    public void getMsg(String msg){
        System.out.println("kudingyu"+msg);
    }
}
